<!DOCTYPE html><html><head><title>browse counties</title><meta charset="utf-8"><style type="text/css">html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}
body {
}</style><script src="../echarts.min.js"></script><script src="../china.js"></script></head><body><div id="china" style="width:100%;height:100vh"></div><script>const map = {"云南":"yun2nan2","内蒙古":"nei4meng1gu3","吉林":"ji2lin2","四川":"si4chuan1","宁夏":"ning2xia4","安徽":"an1hui1","山东":"shan1dong1","山西":"shan1xi1","广东":"guang3dong1","广西":"guang3xi1","新疆":"xin1jiang1","江苏":"jiang1su1","江西":"jiang1xi1","河北":"he2bei3","河南":"he2nan2","浙江":"zhe4jiang1","海南":"hai3nan2","湖北":"hu2bei3","湖南":"hu2nan2","甘肃":"gan1su4","直辖市":"zhi2xia2shi4","福建":"fu2jian4","西藏":"xi1cang2","贵州":"gui4zhou1","辽宁":"liao2ning2","陕西":"shan3xi1","青海":"qing1hai3","黑龙江":"hei1long2jiang1","天津":"zhi2xia2shi4","北京":"zhi2xia2shi4","上海":"zhi2xia2shi4","重庆":"zhi2xia2shi4","香港":"zhi2xia2shi4","澳门":"zhi2xia2shi4"};
const achart = echarts.init(document.getElementById("china"));
var option =  {
  "backgroundColor": "#c5d6e7", 
  "title": [
    {
  "textStyle": {
    "color": "#000",
    "fontSize": 18
  },
  "subtext": "",
  "text": "中国地图",
  "top": "auto",
  "subtextStyle": {
    "color": "#aaa",
    "fontSize": 12
  },
  "left": "auto"
    }
  ],
  "legend": [
    {
  "selectedMode": "multiple",
  "top": "top",
  "orient": "horizontal",
  "data": [
    ""
  ],
  "left": "center",
  "show": true
    }
  ],
  "series": [
    {
  "mapType": "china",
  "data": [],
  "name": "",
  "symbol": "circle",
  "type": "map",
  "roam": true,
  "label": {
    "normal": {
      "show": true
    }
  }
    }
  ]
};
achart.setOption(option);
achart.on('click', function(params){
  const filename = map[params.name];
  window.location.href = filename + ".html";
});</script></body></html>